Skip to content

internal: (studio) add telemetry around time it takes to download the bundle and initialize studio fully #31834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

ryanthemanuel
Copy link
Collaborator

@ryanthemanuel ryanthemanuel commented Jun 5, 2025

Additional details

We need to be able to track on how long it takes to download the studio bundle and initialize it fully. This PR will send those results to honeycomb.

image

Steps to test

How has the user experience changed?

PR Tasks

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces telemetry instrumentation to measure the performance of the studio bundle download and initialization process. Key changes include:

  • Adding telemetry marks and measures across studio initialization and bundle lifecycle events.
  • Integrating telemetry reporting with Honeycomb via TelemetryReporter.
  • Expanding test coverage for telemetry components and ensuring proper behavior during error handling.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/server/test/unit/project_spec.js Added tests for telemetry marks in studio initialization flows.
packages/server/test/unit/cloud/studio/telemetry/TelemetryReporter_spec.ts Implemented unit tests for TelemetryReporter functionality and error handling.
packages/server/test/unit/cloud/studio/telemetry/TelemetryManager_spec.ts Added tests verifying marking, measuring, and clearing telemetry data.
packages/server/test/unit/cloud/studio/StudioLifecycleManager_spec.ts Extended telemetry-related assertions in studio lifecycle management tests.
packages/server/lib/project-base.ts Integrated telemetry marking and reporting in the onStudioInit callback.
packages/server/lib/cloud/studio/telemetry/* New telemetry constants, reporters, and a telemetry manager implementation.
packages/server/lib/cloud/studio/StudioLifecycleManager.ts Instrumented studio lifecycle events with telemetry marks and telemetry reporting.

Copy link

cypress bot commented Jun 5, 2025

cypress    Run #62895

Run Properties:  status check passed Passed #62895  •  git commit 55495adf71: fix tests
Project cypress
Branch Review ryanm/internal/add-telemetry-for-studio-download
Run status status check passed Passed #62895
Run duration 19m 23s
Commit git commit 55495adf71: fix tests
Committer Ryan Manuel
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 10
Tests that did not run due to a developer annotating a test with .skip  Pending 1232
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 32182
View all changes introduced in this branch ↗︎
UI Coverage  45.56%
  Untested elements 191  
  Tested elements 164  
Accessibility  92.73%
  Failed rules  3 critical   9 serious   2 moderate   2 minor
  Failed elements 696  

@ryanthemanuel ryanthemanuel self-assigned this Jun 6, 2025
@ryanthemanuel ryanthemanuel merged commit 4081664 into develop Jun 6, 2025
89 of 91 checks passed
@ryanthemanuel ryanthemanuel deleted the ryanm/internal/add-telemetry-for-studio-download branch June 6, 2025 19:37
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jun 17, 2025

Released in 14.5.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v14.5.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jun 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants